<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Context Free LALR1 compiler: contextFree.scanner.IndexedProduction Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Context Free LALR1 compiler
   &#160;<span id="projectnumber">1.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.8.0 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="dynsections.js"></script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Packages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('classcontext_free_1_1scanner_1_1_indexed_production.html','');
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pri-attribs">Private Attributes</a>  </div>
  <div class="headertitle">
<div class="title">contextFree.scanner.IndexedProduction Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="closed.png" alt="+"/> Inheritance diagram for contextFree.scanner.IndexedProduction:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_indexed_production__inherit__graph.png" border="0" usemap="#context_free_8scanner_8_indexed_production_inherit__map" alt="Inheritance graph"/></div>
<map name="context_free_8scanner_8_indexed_production_inherit__map" id="context_free_8scanner_8_indexed_production_inherit__map">
<area shape="rect" id="node2" href="classcontext_free_1_1grammar_1_1_production.html" title="{contextFree.grammar.Production\n|~ right\l&#45; left\l&#45; leftSimbols\l&#45; rightSimbols\l|+ Production()\l+ Production()\l+ Production()\l+ Production()\l+ getLeftSimbols()\l+ setLeftSimbols()\l+ getRightSimbols()\l+ setRightSimbols()\l+ getLeft()\l+ getRight()\l+ toString()\l}" alt="" coords="25,6,236,274"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="closed.png" alt="+"/> Collaboration diagram for contextFree.scanner.IndexedProduction:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_indexed_production__coll__graph.png" border="0" usemap="#context_free_8scanner_8_indexed_production_coll__map" alt="Collaboration graph"/></div>
<map name="context_free_8scanner_8_indexed_production_coll__map" id="context_free_8scanner_8_indexed_production_coll__map">
<area shape="rect" id="node2" href="classcontext_free_1_1grammar_1_1_production.html" title="{contextFree.grammar.Production\n|~ right\l&#45; left\l&#45; leftSimbols\l&#45; rightSimbols\l|+ Production()\l+ Production()\l+ Production()\l+ Production()\l+ getLeftSimbols()\l+ setLeftSimbols()\l+ getRightSimbols()\l+ setRightSimbols()\l+ getLeft()\l+ getRight()\l+ toString()\l}" alt="" coords="5,302,216,570"/></map>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classcontext_free_1_1scanner_1_1_indexed_production-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad5b9002f7ba3d98ecfc2e3dc7726dd43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad5b9002f7ba3d98ecfc2e3dc7726dd43"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (<a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a> pro)</td></tr>
<tr class="memitem:a97b000e2479c29af6618bfce987d83c6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a97b000e2479c29af6618bfce987d83c6"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p)</td></tr>
<tr class="memitem:a6ca59cdc2f0b317c60878716bab91545"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6ca59cdc2f0b317c60878716bab91545"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (int i, <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p)</td></tr>
<tr class="memitem:aab947b1364a440092cde3a958aee9070"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab947b1364a440092cde3a958aee9070"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (int i, <a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p, String la)</td></tr>
<tr class="memitem:a27402436a02bc8cd69f142e5ff1b6813"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a27402436a02bc8cd69f142e5ff1b6813"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>IndexedProduction</b> (<a class="el" href="classcontext_free_1_1grammar_1_1_production.html">Production</a> p, Set&lt; String &gt; la)</td></tr>
<tr class="memitem:a85be6dd98b754adf00d101df181c3bb3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a85be6dd98b754adf00d101df181c3bb3"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>getCurrentCharIndex</b> ()</td></tr>
<tr class="memitem:a732f8fa87c6841cba382c88a6a6c30a5"><td class="memItemLeft" align="right" valign="top">String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a732f8fa87c6841cba382c88a6a6c30a5">getCharAfter</a> ()</td></tr>
<tr class="memdesc:a732f8fa87c6841cba382c88a6a6c30a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Return the next symbol that that will be read.  <a href="#a732f8fa87c6841cba382c88a6a6c30a5"></a><br/></td></tr>
<tr class="memitem:a3607c538fe8b775bdd7641a252ebb0f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3607c538fe8b775bdd7641a252ebb0f7"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><b>getCharBefore</b> ()</td></tr>
<tr class="memitem:a043e92b74dced5730930c6d492c36a3a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a043e92b74dced5730930c6d492c36a3a"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>setCurrentCharIndex</b> (int currentCharIndex)</td></tr>
<tr class="memitem:a45b191078f89a67427a2593b67ae4f1e"><td class="memItemLeft" align="right" valign="top">Set&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e">getLookahead</a> ()</td></tr>
<tr class="memitem:a8346f298c18af8ce2f48442a12b3a123"><td class="memItemLeft" align="right" valign="top">boolean&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a8346f298c18af8ce2f48442a12b3a123">compare</a> (<a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a> p)</td></tr>
<tr class="memdesc:a8346f298c18af8ce2f48442a12b3a123"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compare to production without the dot.  <a href="#a8346f298c18af8ce2f48442a12b3a123"></a><br/></td></tr>
<tr class="memitem:a445e1ce3ced2a3b4e1157bd682f973a6"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a445e1ce3ced2a3b4e1157bd682f973a6"></a>
String&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a445e1ce3ced2a3b4e1157bd682f973a6">toString</a> ()</td></tr>
<tr class="memdesc:a445e1ce3ced2a3b4e1157bd682f973a6"><td class="mdescLeft">&#160;</td><td class="mdescRight">return a formatted string in the form axioms :: = expression <br/></td></tr>
<tr class="memitem:a1a37f6b6ece07637677a52d970bed542"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1a37f6b6ece07637677a52d970bed542"></a>
boolean&#160;</td><td class="memItemRight" valign="bottom"><b>addLookahead</b> (Set&lt; String &gt; lookahead2)</td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Private Attributes</h2></td></tr>
<tr class="memitem:a8a1fec5bbcbe0f41511ef9ac6ae4ad7e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a1fec5bbcbe0f41511ef9ac6ae4ad7e"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>currentCharIndex</b></td></tr>
<tr class="memitem:a8a766e2b079a0f160e3703ceff3bcef9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8a766e2b079a0f160e3703ceff3bcef9"></a>
Set&lt; String &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>lookahead</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00010">10</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a8346f298c18af8ce2f48442a12b3a123"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">boolean <a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a8346f298c18af8ce2f48442a12b3a123">contextFree.scanner.IndexedProduction.compare</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a>&#160;</td>
          <td class="paramname"><em>p</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Compare to production without the dot. </p>
<dl class="params"><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">p</td><td>production to compare </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns:</dt><dd>true if they are equal, false otherwise </dd></dl>

<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00108">108</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>

<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="closed.png" alt="+"/> Here is the call graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_indexed_production_a8346f298c18af8ce2f48442a12b3a123_cgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_indexed_production_a8346f298c18af8ce2f48442a12b3a123_cgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_indexed_production_a8346f298c18af8ce2f48442a12b3a123_cgraph" id="classcontext_free_1_1scanner_1_1_indexed_production_a8346f298c18af8ce2f48442a12b3a123_cgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1grammar_1_1_production.html#aff0ed3fbde7f7a476a993936c27ddef7" title="contextFree.grammar.Production.getLeftSimbols" alt="" coords="361,5,663,32"/></map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a732f8fa87c6841cba382c88a6a6c30a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">String <a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a732f8fa87c6841cba382c88a6a6c30a5">contextFree.scanner.IndexedProduction.getCharAfter</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Return the next symbol that that will be read. </p>
<dl class="section return"><dt>Returns:</dt><dd>the character after dot in the production </dd></dl>

<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00074">74</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>

</div>
</div>
<a class="anchor" id="a45b191078f89a67427a2593b67ae4f1e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Set&lt;String&gt; <a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html#a45b191078f89a67427a2593b67ae4f1e">contextFree.scanner.IndexedProduction.getLookahead</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<dl class="section return"><dt>Returns:</dt><dd>a reference to the lookahead list </dd></dl>

<p>Definition at line <a class="el" href="_indexed_production_8java_source.html#l00099">99</a> of file <a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a>.</p>

<p><div id="dynsection-3" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-3-trigger" src="closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-3-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-3-content" class="dyncontent" style="display:none;">
<div class="center"><img src="classcontext_free_1_1scanner_1_1_indexed_production_a45b191078f89a67427a2593b67ae4f1e_icgraph.png" border="0" usemap="#classcontext_free_1_1scanner_1_1_indexed_production_a45b191078f89a67427a2593b67ae4f1e_icgraph" alt=""/></div>
<map name="classcontext_free_1_1scanner_1_1_indexed_production_a45b191078f89a67427a2593b67ae4f1e_icgraph" id="classcontext_free_1_1scanner_1_1_indexed_production_a45b191078f89a67427a2593b67ae4f1e_icgraph">
<area shape="rect" id="node3" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a879873c5f879881494d342782387d661" title="Passed a list of production I that form the kernel of a state, return closing it, and the lookahead s..." alt="" coords="683,25,943,52"/><area shape="rect" id="node10" href="classcontext_free_1_1scanner_1_1_state.html#a987d4c7ae8eb2754f13f0099f5d861a5" title="return one list&lt;IndexedProduction&gt; with the kernel of a state" alt="" coords="392,76,635,102"/><area shape="rect" id="node5" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a84de2247841f98c9d1339acac165d141" title="Initialize the LALR(1) automaton from LR0 automaton." alt="" coords="1325,25,1531,52"/><area shape="rect" id="node7" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#ab1c19e75693982310b7494bd3b8623c9" title="Calculate one step of lookahead symbol from an automaton with the algorithm of spontaneous generation..." alt="" coords="993,25,1277,52"/><area shape="rect" id="node12" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a909aea9ab05f3633c169e4dd20447e62" title="if the point is in the last position he wrote the reduces in the action table." alt="" coords="700,76,927,102"/><area shape="rect" id="node14" href="classcontext_free_1_1scanner_1_1_l_a_l_r1.html#a92b63b5d61bbdd523a16aa5e577c2ba6" title="builds the Action table GoTo from an automa LALR1 and tells us if it is or not type of LALR1..." alt="" coords="993,76,1276,102"/></map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>src/contextFree/scanner/<a class="el" href="_indexed_production_8java_source.html">IndexedProduction.java</a></li>
</ul>
</div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>contextFree</b>      </li>
      <li class="navelem"><a class="el" href="namespacecontext_free_1_1scanner.html">scanner</a>      </li>
      <li class="navelem"><a class="el" href="classcontext_free_1_1scanner_1_1_indexed_production.html">IndexedProduction</a>      </li>

    <li class="footer">Generated on Fri Mar 30 2012 21:26:26 for Context Free LALR1 compiler by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.0 </li>
   </ul>
 </div>


</body>
</html>
